/*
 * ForeverInstructionDescription.java
 * 
 * last update: 16.01.2010 by Stefan Saru
 * 
 * author:	Power(power@kermit.cs.pub.ro)
 * 
 * Obs:
 */

package engine;

class ForeverInstructionDescription extends InstructionDescription{
	InstructionDescription id;

	ForeverInstructionDescription(int db, int line, NameSpaceDescription nsd, InstructionDescription id){
		super(db, line, nsd);
		this.id = id;
	}

	DefaultInstruction instantiate(NameSpace ns)throws ParseException{
		return new ForeverInstruction(ns, delayBefore, this, id.instantiate(ns),
				next == null ? null : next.instantiate(ns));
	}
}
